package com.qj.yantaishan.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * @author qihe
 * @description permission
 * @date 2022-08-11
 */
@Data
@TableName("permission")
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    /**
     * id
     */
    private Integer id;

    /**
     * 权限名
     */
    private String permissionName;

    /**
     * 权限父id 0则为一级权限
     */
    private Integer permissionFid;

    /**
     * 权限控制器
     */
    private String permissionController;
    @TableField(exist = false)
    private List<Permission> childPermissions;

    public Permission() {
    }
}